package StudyCode.summary.myfile;

import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateAbsolutePath {
	public static void main(String[] args) {
		Path path10 = Paths.get("E:/Copy/1/2", "test.txt");
		System.out.println(path10);
		Path path11 = Paths.get("E:", "Copy/1/2", "test.txt");
		System.out.println(path11);
		Path path12 = Paths.get("E:", "Copy", "1", "2009", "test.txt");
		System.out.println(path12);
		Path path13 = Paths.get("E:/Copy/1/2/test.txt");
		System.out.println(path13);
		Path path14 = Paths.get(System.getProperty("user.home"), "downloads", "test1.txt");
		System.out.println(path14);
		Path path15 = Paths.get(URI.create("file:///E:/Copy/1/2/test.txt"));
		System.out.println(path15);
	}
}
